/******************************************************************************
 * * interphone_global.h - data structure for interphone module
 *
 * *(C) Copyright 2019 Asr International Ltd.
 * * All Rights Reserved
 * ******************************************************************************/
#ifndef INTERPHONE_GLOBAL_H
#define INTERPHONE_GLOBAL_H

#ifdef __cplusplus
extern "C" {
#endif

/* include header file */
#include <stdio.h>
#include <string.h>
#include "ui_type.h"
#include "ui_log.h"
#include "ui_textid.h"
#include "ui_nvm_interface.h"
#include "inter_common_ui_interface.h"
#include "modem/mmi_modemadp_interface.h"
#include "inter_interphone_interface.h"
#include "nav.h"
#include "../../lvgl/hal/hal.h"

#ifdef USE_LV_INTERPHONE_DEMO


#define GROUP_NAME_LEN          64
#define GROUPMEMBER_NAME_LEN    20
#define FRIEND_NAME_LEN         20

typedef struct
{
    INT8 MemberName[GROUPMEMBER_NAME_LEN];
    BOOL Online;
} Interphone_GroupMember_Info;

typedef struct
{
    INT8                        Name[GROUP_NAME_LEN];
    UINT8                       MemberCnt;
    UINT8                       OnlineMemberCnt;
    UINT8                       MsgCnt;
    Interphone_GroupMember_Info *Member;
} Interphone_GroupList_Info;

typedef struct
{
    INT8 FriendName[FRIEND_NAME_LEN];
    BOOL Online;
} Interphone_FriendList_Info;

typedef struct
{
    lv_obj_t *Label_Volume;
    lv_obj_t *Label_Stan;
    lv_obj_t *Img_Stan;
    lv_obj_t *Img_Signal;
    lv_obj_t *Label_Battery;
    lv_obj_t *Label_Time;
    lv_obj_t *Label_Online;
} Interphone_Status_Bar_t;

#endif /*USE_LV_INTERPHONE_DEMO*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* INTERPHONE_GLOBAL_H */
